package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;



@Data
@NoArgsConstructor // 生成无参构造函数
@AllArgsConstructor // 生成全参数构造函数
public class SearchResult {
    private List<AirspacePlan> users;
    private List<AirportInfo> airports;
    private List<RouteInfo> routes;
    private List<OperationInfo> operationAreas;
    private List<SpecialInfo> specials;
    private String keyword;
    private String sort;
    private boolean order;



    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class AirportInfo{
        private String airportName;
        private int airportType;
        private String landingZoneType;
        private String landingLocationCoordinates;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class RouteInfo{
        private String routeName;
        private String routeType;
        private String coordinateInformationPoints;
        private String heightIntervalTest;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class OperationInfo{
        private String operationAreaName;
        private String operationAreaType;
        private String operationType;
        private String coordinateInformationPoints;
        private String heightIntervalTest;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SpecialInfo{
        private String specialAirspaceName;
        private String specialAirspaceType;
        private String coordinateInformationPoints;
        private String heightIntervalTest;
    }

}
